package cn.itcast.demo2;

public class Test {
    public static void main(String[] args){
        Animal an = new Dog();
        System.out.println(an.name);

        Dog dog = new Dog();
        System.out.println(dog.name);
    }

}
